package com.glory.good_dark.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class SystemConfigEntity implements Serializable {

    private String IPADRESS;
    private String PORT;
    private String DEVICEID;
    private List<SystemType> CONNECTIONMODE;
    private List<SystemType> LotInfo;

    public List<SystemType> getLotInfo() {
        if (LotInfo == null) {
            return new ArrayList<>();
        }
        return LotInfo;
    }

    public void setLotInfo(List<SystemType> lotInfo) {
        LotInfo = lotInfo;
    }

    public String getIPADRESS() {
        return IPADRESS == null ? "" : IPADRESS;
    }

    public void setIPADRESS(String IPADRESS) {
        this.IPADRESS = IPADRESS;
    }

    public String getPORT() {
        return PORT == null ? "" : PORT;
    }

    public void setPORT(String PORT) {
        this.PORT = PORT;
    }

    public String getDEVICEID() {
        return DEVICEID == null ? "" : DEVICEID;
    }

    public void setDEVICEID(String DEVICEID) {
        this.DEVICEID = DEVICEID;
    }

    public List<SystemType> getCONNECTIONMODE() {
        if (CONNECTIONMODE == null) {
            return new ArrayList<>();
        }
        return CONNECTIONMODE;
    }

    public void setCONNECTIONMODE(List<SystemType> CONNECTIONMODE) {
        this.CONNECTIONMODE = CONNECTIONMODE;
    }

    public class SystemType implements Serializable{
        private String MODE;
        private String LOT_ID;
        private String LF_Count;
        private String stripid;
        private String StripID;
        private List<SystemType> StripInfo;

        public String getStripID() {
            return StripID == null ? "" : StripID;
        }

        public void setStripID(String stripID) {
            StripID = stripID;
        }

        public String getLOT_ID() {
            return LOT_ID == null ? "" : LOT_ID;
        }

        public void setLOT_ID(String LOT_ID) {
            this.LOT_ID = LOT_ID;
        }

        public String getLF_Count() {
            return LF_Count == null ? "" : LF_Count;
        }

        public void setLF_Count(String LF_Count) {
            this.LF_Count = LF_Count;
        }

        public String getStripid() {
            return stripid == null ? "" : stripid;
        }

        public void setStripid(String stripid) {
            this.stripid = stripid;
        }

        public List<String> getStripInfo() {
            if (StripInfo == null) {
                return new ArrayList<>();
            }
            List<String> list = new ArrayList<>();
            if (StripInfo.size() > 0){
                for (SystemConfigEntity.SystemType type : StripInfo){
                    list.add(type.getStripid());
                }
            }
            return list;
        }

        public void setStripInfo(List<SystemType> stripInfo) {
            StripInfo = stripInfo;
        }

        public String getMODE() {
            return MODE == null ? "" : MODE;
        }

        public void setMODE(String MODE) {
            this.MODE = MODE;
        }
    }
}
